<?php

class Nutri_Model_Product extends Nutri_Model_Abstract
{
	protected $_name;	
	protected $_description;
	protected $_price;
    
	public function setName($value)
    {
        $this->_name = $value;
        return $this;
    }
 
    public function getName()
    {
        return $this->_name;
    }
	
	public function setDescription($value)
    {
        $this->_description = $value;
        return $this;
    }
 
    public function getDescription()
    {
        return $this->_description;
    }
	
	public function setPrice($value)
    {
        $this->_price = $value;
        return $this;
    }
 
    public function getPrice()
    {
        return $this->_price;
    }
    
	public function toArray()
    {
        return array (
            'id' => $this->getId(),
            'name' => $this->getName(),
            'description' => $this->getDescription(),
            'price' => $this->getPrice(),
        );
    }
    
 	public function getMapper()
    {
        if (null === $this->_mapper) {
            $this->setMapper('Nutri_Model_Mapper_Product');
        }
        return $this->_mapper;
    }
}